<#--

	调用标签样式
	调用user 的作用测试
	
	获取的是类目下的商品列表
 -->
<#macro GoodsList orderBy='0' hasContent='0'
	isPage='0' count='20' firstResult='0' pageNo=pageNo
	style='1' inner='0' cssClass='' cssStyle=''
	 pageClass='' pageStyle='' isLoop='1' catid='' >
<#if inner=='0'>
	<@s.action  name="category!getCategorys" namespace='/' 
		orderBy=orderBy hasContent=hasContent
		isPage=isPage count=count firstResult=firstResult pageNo=pageNo
		style=style cssClass=cssClass cssStyle=cssStyle
		pageClass=pageClass pageStyle=pageStyle catid=catid
	/>
<#else>
    <#-- 不需要返回任何页面 -->
	<@s.action name="category!getCategorys" namespace='/'
		orderBy=orderBy hasContent=hasContent
		isPage=isPage count=count firstResult=firstResult pageNo=pageNo
		style=style cssClass=cssClass cssStyle=cssStyle
		pageClass=pageClass pageStyle=pageStyle catid=catid
	/>
	<#if isLoop=='1'>
  		<#list page.result as item>
			<#nested item,item_index,item_has_next/>
		</#list>
	<#else>
		<#nested page/>
	</#if>
</#if>
</#macro>


<#macro ShopGoodsList orderBy='0' hasContent='0'
	isPage='0' count='20' firstResult='0' pageNo=pageNo
	style='1' inner='0' cssClass='' cssStyle=''
	 pageClass='' pageStyle='' isLoop='1' catid='' nick='' >
<#if inner=='0'>
	<@s.action  name="shop!getShops" namespace='/' 
		orderBy=orderBy hasContent=hasContent
		isPage=isPage count=count firstResult=firstResult pageNo=pageNo
		style=style cssClass=cssClass cssStyle=cssStyle
		pageClass=pageClass pageStyle=pageStyle catid=catid nick=nick
	/>
<#else>
    <#-- 不需要返回任何页面 -->
	<@s.action name="shop!getShops" namespace='/'
		orderBy=orderBy hasContent=hasContent
		isPage=isPage count=count firstResult=firstResult pageNo=pageNo
		style=style cssClass=cssClass cssStyle=cssStyle
		pageClass=pageClass pageStyle=pageStyle catid=catid nick=nick
	/>
	<#if isLoop=='1'>
  		<#list page.result as item>
			<#nested item,item_index,item_has_next/>
		</#list>
	<#else>
		<#nested page/>
	</#if>
</#if>
</#macro>


<#macro PageTag name cssClass="" cssStyle="" solution="" webRes="">
<#if page??>
	<#local lp=page/>
<#elseif page??>
	<#local lp=page/>
<#else>
	<#return/>
</#if>
<@Include name=name solution=solution webRes=webRes sysType="style_pagination"/>
</#macro>